<template>
    <footer>
        <div class="banxin foote tanxin">
            <div class="left">
                <img src="../assets/images/home/slogan.png" alt="" />
                <p>
                    叩丁狼是一家专注于培养高级IT技术人才，为学员提供定制化IT职业规划方案及意见咨询服务的教育科技公司，为您提供海量优质课程，以及创新的线上线下学习体验，帮助您获得全新的个人发展和能力提升。
                </p>
            </div>
            <ul class="center">
                <li @mouseenter="showWx = true" @mouseleave="showWx = false">
                    <a href="javascript:;">微信公众号</a>
                    <img class="wx" v-show="showWx" src="../assets/images/home/wx.png" alt="" />
                </li>
                <li>
                    <a href="javascript:;">新浪微博</a>
                </li>
                <li @mouseenter="showService = true" @mouseleave="showService = false">
                    <a href="javascript:;">在线客服</a>
                    <img class="service" v-show="showService" src="../assets/images/home/service.png" alt="" />
                </li>
            </ul>
            <div class="right">
                <p>全国免费咨询热线：</p>
                <h2>020-85628002</h2>
            </div>
        </div>
    </footer>
</template>

<script>
export default {
    data() {
        return {
            showWx: false,
            showService: false,
        };
    },
};
</script>
 
<style lang = "less" scoped>
@import "../assets/base.less";

footer {
    background: @black;
    color: #7d879a;

    a {
        color: #7d879a;
        text-decoration: none;
    }

    a:hover {
        color: #ffffff;
    }

    .foote {
        height: 240px;

        .left {
            width: 426px;

            img {
                margin-top: 33px;
                margin-bottom: 27px;
            }

            p {
                font-size: 12px;
                font-family: "微软雅黑";
                font-weight: 400;
                line-height: 1.4;
            }
        }

        .center {
            display: flex;
            justify-content: center;
            margin-top: 123px;

            li {
                height: 19px;
                border-right: 1px solid #7d879a;
                padding-right: 18px;
                padding-left: 18px;
                position: relative;

                &:last-of-type {
                    border: 0;
                }

                .wx,
                .service {
                    position: absolute;
                    left: 50%;
                    top: -110px;
                    transform: translateX(-50%);
                }
            }
        }

        .right {
            padding-top: 92px;

            p {
                font-size: 14px;
                font-family: "微软雅黑";
                color: #7d879a;
                margin-bottom: 10px;
            }

            h2 {
                font-size: 28px;
                font-family: "黑体";
                font-weight: bold;
                color: #ffffff;
            }
        }
    }
}
</style>